namespace Web.Control.Member.User
{
    using System;
    using System.Data;
    using System.Drawing;
    using System.Web;
    using System.Web.Security;
    using System.Web.UI.WebControls;
    using System.Web.UI.HtmlControls;
    using System.Text.RegularExpressions;
    using Lx.Web.Common.UI;
    using Lx.Web.Common.ControlsUI;
    using System.Collections;
    using System.IO;
    using System.Drawing.Imaging;

    using Model.WWW_User.User;
    using BLF.WWW_User.Users;

    public class Active_step2 : BaseControl
    {        
        protected string[] msg1 = null;        
        protected string InitImg = "";
        protected override void OnInit(EventArgs e)
        {
            msg1 = new string[] { this.GetText("C1001"), this.GetText("C1004"), this.GetText("C1002"), this.GetText("C1005"), this.GetText("C1006") };
            base.OnInit(e);
        }

        protected override void OnLoad(EventArgs e)
        {
            if (HttpContext.Current.User.Identity.Name == "")
            {
                Page.Response.Redirect("/user/login.htm?ReturnUrl=" + Page.Request.Url.AbsoluteUri);
            }
            if (!string.IsNullOrEmpty(Request["S"]))
            {
                UserModel bum = User.GetDetailUserInfo(HttpContext.Current.User.Identity.Name);
                InitImg = bum.Avatar + "?" + new Random().NextDouble();
            }
            base.OnLoad(e);
        }      
    }
}

